package com.aixin.csopuser.domain;


import lombok.*;

import javax.persistence.*;

@Data
@ToString
@Entity
@NoArgsConstructor
@Table(name="policy")
public class PolicyDomain {

    @Id
    private String UUID;
    private String policyNumber;//保单号
    private String customerID;//客户ID
    private String agencyCode;//机构
    private String channelCode;//渠道
    private String districtCode;//区部
    private String branchCode;//网点
    private String secondAgency;//二级机构
    private String insured;//受保人
    private String insuredCard;//受保人证件号
    private String InsuredPhone;//受保人手机号
    private String insEffeData;//保单生效日期
    private String serviceEffeData;//服务生效日期
    private String agentCode;//规划师
    private String policyStatus;//保单状态
    private String createTime;
    private String updateTime;
    private String riskCode;//险种编码
    private String agencyName;//签单机构
    private String channelName;//渠道名称
    private String districtName;//所属区部
    private String branchName;//营业网点
    private String secondAgencyName;// 二级机构名称

//    @ManyToOne
//    @JoinColumn(name = "customerID", nullable = false, insertable = false, updatable = false)
//    private CustomerDomain customer;
}
